package com.curve.util;

import org.jfree.data.category.CategoryDataset;
import org.jfree.chart.plot.PlotOrientation;

/**
 * User: IBM
 * Date: 2008-4-29
 * Time: 11:38:08
 */
public class BarChart {
   String title, xtitle, ytitle;

	double min, max;

	CategoryDataset data;

	PlotOrientation orientation = PlotOrientation.VERTICAL;

	boolean autoRang;

	public BarChart(String title, String xtitle, String ytitle, double min,
			double max, CategoryDataset data) {
		this(title, xtitle, ytitle, data);

		this.min = min;
		this.max = max;

		this.autoRang = false;
	}

	public BarChart(String title, String xtitle, String ytitle,
			CategoryDataset data) {
		this.title = title;
		this.xtitle = xtitle;
		this.ytitle = ytitle;

		this.data = data;
		this.autoRang = true;
	}

	public boolean isAutoRang() {
		return autoRang;
	}

	public void setAutoRang(boolean autoRang) {
		this.autoRang = autoRang;
	}

	public PlotOrientation getOrientation() {
		return orientation;
	}

	public void setOrientation(PlotOrientation orientation) {
		this.orientation = orientation;
	}

	public CategoryDataset getData() {
		return data;
	}

	public void setData(CategoryDataset data) {
		this.data = data;
	}

	public double getMax() {
		return max;
	}

	public void setMax(double max) {
		this.max = max;
	}

	public double getMin() {
		return min;
	}

	public void setMin(double min) {
		this.min = min;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getXtitle() {
		return xtitle;
	}

	public void setXtitle(String xtitle) {
		this.xtitle = xtitle;
	}

	public String getYtitle() {
		return ytitle;
	}

	public void setYtitle(String ytitle) {
		this.ytitle = ytitle;
	}
}
